﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Data.Linq.Mapping;
using System.Runtime.Serialization;

namespace RaisingStudio.Data.Entities
{
    /// <summary>
    /// SystemUser
    /// </summary>
    [Serializable]
    [DataContract]
    [Table(Name = "DAC_USER")]
    partial class SystemUser
    {
        #region Members

        private string _UserID;
        /// <summary>
        /// UserID
        /// </summary>
        [Description("UserID")]
        [DataMember]
        [Column(Name = "USER_ID", CanBeNull = false, IsPrimaryKey = true)]
        public string UserID
        {
          get 
          {
              return this._UserID;
          }
          set 
          {
              this._UserID = value;
          }
        }


        private string _UserName;
        /// <summary>
        /// UserName
        /// </summary>
        [Description("UserName")]
        [DataMember]
        [Column(Name = "USERNAME", CanBeNull = false)]
        public string UserName
        {
          get 
          {
              return this._UserName;
          }
          set 
          {
              this._UserName = value;
          }
        }


        private string _FullName;
        /// <summary>
        /// FullName
        /// </summary>
        [Description("FullName")]
        [DataMember]
        [Column(Name = "FULLNAME")]
        public string FullName
        {
          get 
          {
              return this._FullName;
          }
          set 
          {
              this._FullName = value;
          }
        }


        private string _Password;
        /// <summary>
        /// Password
        /// </summary>
        [Description("Password")]
        [DataMember]
        [Column(Name = "USER_PWD")]
        public string Password
        {
          get 
          {
              return this._Password;
          }
          set 
          {
              this._Password = value;
          }
        }


        private bool? _ChangingPassword;
        /// <summary>
        /// ChangingPassword
        /// </summary>
        [Description("ChangingPassword")]
        [DataMember]
        [Column(Name = "CHANGINGPWD")]
        public bool? ChangingPassword
        {
          get 
          {
              return this._ChangingPassword;
          }
          set 
          {
              this._ChangingPassword = value;
          }
        }


        private bool? _UserLocked;
        /// <summary>
        /// UserLocked
        /// </summary>
        [Description("UserLocked")]
        [DataMember]
        [Column(Name = "USERLOCKED")]
        public bool? UserLocked
        {
          get 
          {
              return this._UserLocked;
          }
          set 
          {
              this._UserLocked = value;
          }
        }


        private DateTime? _LastLogin;
        /// <summary>
        /// LastLogin
        /// </summary>
        [Description("LastLogin")]
        [DataMember]
        [Column(Name = "LASTLOGIN")]
        public DateTime? LastLogin
        {
          get 
          {
              return this._LastLogin;
          }
          set 
          {
              this._LastLogin = value;
          }
        }


        private string _UserDescription;
        /// <summary>
        /// UserDescription
        /// </summary>
        [Description("UserDescription")]
        [DataMember]
        [Column(Name = "USER_DESC")]
        public string UserDescription
        {
          get 
          {
              return this._UserDescription;
          }
          set 
          {
              this._UserDescription = value;
          }
        }

        #endregion
    }
}
